package com.witframework.dynoengine.render.form;

import com.witframework.util.StringTools;


public class PasswordRender extends FormFieldRender{
	
	public String render() {		
		html.input("password").name((String)getParameter(super.PARAM_name));
		if(!StringTools.parseBoolean((String)getParameter(super.PARAM_editable))) html.readonly();
		String tooltipText=(String)getParameter(super.PARAM_tiptext);
		html.append("tooltipText=\""+(tooltipText==null?"":tooltipText)+"\"");
		html.size((String)getParameter(super.PARAM_size));
		html.value((String)getParameter(super.PARAM_value));
		html.close();
		return html.toString();
	}

}
